import QtQuick 2.6
import QtQuick.Window 2.2

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")
  MouseArea{
  anchors.fill: parent
  onClicked: {
      CodeImage.setImage();

  }}

    Image{
        id:img
       anchors.fill: parent
       width: 400
       height: 400

    }
    Connections{
        target: CodeImage
        onCallQmlRefeshImg:{
            img.source = ""
            img.source = "image://CodeImg"
        }
    }
    Column {
          Image { source: "image://colors/yellow" }
          Image { source: "image://colors/blue" }
          Image{source: "image://colors/red"}
      }
}
